package com.woniuxy.user.mapper;

import com.hc.entity.BlackList;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BlackListMapper {
    //某个用户拉黑某个用户
    @Insert({"insert into hc_blacklist(user_id,blackuser_id) values(#{userId},#{blackUserId})"})
    int insertIntoBlackList(BlackList blackList);
    //根据用户id和被拉黑id获取数据
    BlackList getByBothId(@Param("userId")Integer userId,@Param("blackUserId")Integer blackUserId);
}